import React from 'react'
import {useRoutes} from 'react-router-dom'
import Home from '../view/Home/Home'
import Music from '../view/Music/Music'
const routes = [
    {
        path:"/",
        element:<Home/>
    },
    {
        path:"/music",
        element:<Music/>
    }
]
const RouterView=()=> {
    const result = useRoutes(routes)
    return result
}
export default RouterView;